package service

import (
	"context"
	v1 "proxy_manage/gen/proxy/v1"

	"connectrpc.com/connect"
)

type ProxyService struct {
}

func NewProxyService() *ProxyService {
	return &ProxyService{}
}

func (p *ProxyService) Ping(ctx context.Context, req *connect.Request[v1.PingRequest]) (*connect.Response[v1.PingResponse], error) {
	return &connect.Response[v1.PingResponse]{Msg: &v1.PingResponse{Message: "pong"}}, nil
}
